<template>
  <div>
    <MyHeader/>
    <router-view></router-view>
    <MyFooter v-show="$route.meta.show"></MyFooter>
  </div>
</template>
<script>
export default {
  name: 'App',
  data() {
    return {
      // 默认的查找参数Params
      searchParams: {
        pageNo: 6,
        pageSize: 3,
      },
    };
  },
  mounted() {
    //App的根组件挂载完毕,发一次请求即可.
    this.$store.dispatch("getCategory");
  },
}
</script>

<style>
</style>
